home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2004 #2 / K-CD-2-2004.ISO / OpenOffice Sv / f_0397 / python-core-2.2.2 / lib / test / test_longexp.py < prev    next >
Encoding:
Python Source  |  2003-07-18  |  280 b   |  13 lines

  1. import sys
  2. from test_support import TestSkipped
  3.  
  4. REPS = 65580
  5.  
  6. if sys.platform == 'mac':
  7.     import gestalt
  8.     if gestalt.gestalt('sysv') > 0x9ff:
  9.         raise TestSkipped, 'Triggers pathological malloc slowdown on OSX MacPython'
  10.  
  11. l = eval("[" + "2," * REPS + "]")
  12. print len(l)
  13.